import service from '@/utils/request'

const ServerClassifyApi = {
  listServerClassify:function(data){
    return service.get('serverClassify/tree', {params:data})
  },
  addServerClassify:function(data){
      return service.post('serverClassify', data)
  },
  editServerClassify:function(data){
      return service.put('serverClassify', data)
  },
  deleteServerClassify:function(data){
      return service.put('serverClassify/delete', data)
  },
  getServerClassifyInfo(data){
      return service.get('serverClassify', {params:data})
  },
  listIdName:function(data){
    return service.get('serverClassify/listIdName', {params:data})
  },
  listServerClassifyTree:function(data){
    return service.get('serverClassify/idNameTree', {params:data}) 
  },
  setBanners(data){
    return service.post("banner/setBanners",data)
  },
  listBanner(data){
    return service.get("banner/listBanner",{params:data})
  },
}

export default ServerClassifyApi
